package com.vogue.supplymall.common.constant;

/**
 * The enum Order status enum.
 * 订单状态的枚举
 *
 * @author zhangliang Create in 2018-09-20
 */
public enum OrderStatusEnum {
    /**
     * Wait pay order status enum.
     */
    WAIT_PAY(0, "待付款"),
    /**
     * Wait agree order status enum.
     */
    WAIT_AGREE(1, "待接单(已付款)"),
    /**
     * Wait send order status enum.
     */
    WAIT_SEND(2, "待发货(已付款)"),
    /**
     * Wait receive order status enum.
     */
    WAIT_RECEIVE(3, "待收货(已发货)"),
    /**
     * Finish order status enum.
     */
    FINISH(4, "已完成(已收货)");

    private int code;
    private String name;

    OrderStatusEnum(int code, String name) {
        this.code = code;
        this.name = name;
    }

    /**
     * Gets code.
     *
     * @return the code
     */
    public int getCode() {
        return code;
    }

    /**
     * Sets code.
     *
     * @param code the code
     */
    public void setCode(int code) {
        this.code = code;
    }

    /**
     * Gets name.
     *
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * Sets name.
     *
     * @param name the name
     */
    public void setName(String name) {
        this.name = name;
    }
}
